import axios from "axios";
import router from '../router'; // 导入路由实例
import { Message } from 'element-ui';

// let baseURLs = 'http://hbbackstage.nb.yhpcsoft.com/'
// 测试
let baseURLs = 'http://192.168.10.120:8081'

// 添加一个标志位，用于控制是否已经显示过登录过期提示
let isShowingLoginExpired = false;
let loginExpiredTimer = null;

const request = axios.create({
    // baseURL:'http://bizcontract.nb.yhpcsoft.com/',
    //测试
    baseURL: baseURLs,
    timeout: 40000000
})


export default request
export {
    baseURLs
}